﻿using SQLDataUploadHelper.daos;
using SQLDataUploadHelper.models.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SQLDataUploadHelper.services
{
    internal class SqlConnectConfigService
    {
        private SqlConnectConfigDao mysqlConnectConfigDao = new SqlConnectConfigDao();

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="mySqlConnectConfig"></param>
        /// <returns></returns>
        public bool update(SqlConnectConfig mysqlConnectInfo)
        {
            return mysqlConnectConfigDao.update(mysqlConnectInfo);
        }

        /// <summary>
        /// 获取
        /// </summary>
        /// <returns></returns>
        public SqlConnectConfig getOne()
        {
            return mysqlConnectConfigDao.getOne();
        }
    }
}
